Namespaces

Classes

Functions

string
action(string $name, array $parameters = array())

Generate a URL to a controller action.

mixed
app(string $make = null)

Get the root Facade application instance.

string
app_path(string $path = '')

Get the path to the application folder.

array
append_config(array $array)

Assign high numeric IDs to a config item to force appending.

array
array_add(array $array, string $key, mixed $value)

Add an element to an array using "dot" notation if it doesn't exist.

array
array_build(array $array, Closure $callback)

Build a new array using a callback.

array
array_divide(array $array)

Divide an array into two arrays. One with keys and the other with values.

array
array_dot(array $array, string $prepend = '')

Flatten a multi-dimensional associative array with dots.

array
array_except(array $array, array|string $keys)

Get all of the given array except for a specified array of items.

array
array_fetch(array $array, string $key)

Fetch a flattened array of a nested array element.

mixed
array_first(array $array, Closure $callback, mixed $default = null)

Return the first element in an array passing a given truth test.

array
array_flatten(array $array)

Flatten a multi-dimensional array into a single level.

void
array_forget(array $array, array|string $keys)

Remove one or many array items from a given array using "dot" notation.

mixed
array_get(array $array, string $key, mixed $default = null)

Get an item from an array using "dot" notation.

bool
array_has(array $array, string $key)

Check if an item exists in an array using "dot" notation.

mixed
array_last(array $array, Closure $callback, mixed $default = null)

Return the last element in an array passing a given truth test.

array
array_only(array $array, array|string $keys)

Get a subset of the items from the given array.

array
array_pluck(array $array, string $value, string $key = null)

Pluck an array of values from an array.

mixed
array_pull(array $array, string $key, mixed $default = null)

Get a value from the array, and remove it.

array
array_set(array $array, string $key, mixed $value)

Set an array item to a given value using "dot" notation.

array
array_sort(array $array, Closure $callback)

Sort the array using the given Closure.

array
array_where(array $array, Closure $callback)

Filter the array using the given Closure.

string
asset(string $path, bool $secure = null)

Generate an asset path for the application.

string
base_path(string $path = '')

Get the path to the base of the install.

string
camel_case(string $value)

Convert a value to camel case.

string
class_basename(string|object $class)

Get the class "basename" of the given object / class.

array
class_uses_recursive(string $class)

Returns all traits used by a class, it's subclasses and trait of their traits

string
csrf_token()

Get the CSRF token value.

mixed
data_get(mixed $target, string $key, mixed $default = null)

Get an item from an array or object using "dot" notation.

void
dd()

Dump the passed variables and end the script.

string
e(string $value)

Escape HTML entities in a string.

bool
ends_with(string $haystack, string|array $needles)

Determine if a given string ends with a given substring.

mixed
head(array $array)

Get the first element of an array. Useful for method chaining.

mixed
last(array $array)

Get the last element from an array.

mixed
object_get(object $object, string $key, mixed $default = null)

Get an item from an object using "dot" notation.

string
preg_replace_sub(string $pattern, array $replacements, string $subject)

Replace a given pattern with each value in the array in sequentially.

string
public_path(string $path = '')

Get the path to the public folder.

string
route(string $name, array $parameters = array(), bool $absolute = true, Route $route = null)

Generate a URL to a named route.

string
secure_asset(string $path)

Generate an asset path for the application.

string
secure_url(string $path, mixed $parameters = array())

Generate a HTTPS url for the application.

string
snake_case(string $value, string $delimiter = '_')

Convert a string to snake case.

bool
starts_with(string $haystack, string|array $needles)

Determine if a given string starts with a given substring.

string
storage_path(string $path = '')

Get the path to the storage folder.

bool
str_contains(string $haystack, string|array $needles)

Determine if a given string contains a given substring.

string
str_finish(string $value, string $cap)

Cap a string with a single instance of a given value.

bool
str_is(string $pattern, string $value)

Determine if a given string matches a given pattern.

string
str_limit(string $value, int $limit = 100, string $end = '...')

Limit the number of characters in a string.

string
str_plural(string $value, int $count = 2)

Get the plural form of an English word.

string
str_random(int $length = 16)

Generate a more truly "random" alpha-numeric string.

string
str_replace_array(string $search, array $replace, string $subject)

Replace a given value in the string sequentially with an array.

string
str_singular(string $value)

Get the singular form of an English word.

string
studly_case(string $value)

Convert a value to studly caps case.

array
trait_uses_recursive(string $trait)

Returns all traits used by a trait and its traits

string
trans(string $id, array $parameters = array(), string $domain = 'messages', string $locale = null)

Translate the given message.

string
trans_choice(string $id, int $number, array $parameters = array(), string $domain = 'messages', string $locale = null)

Translates the given message based on a count.

string
url(string $path = null, mixed $parameters = array(), bool $secure = null)

Generate a url for the application.

mixed
value(mixed $value)

Return the default value of the given value.

mixed
with(mixed $object)

Return the given object. Useful for chaining.